<!doctype html>
<!--suppress HtmlUnknownTarget -->
<html>
<head>
<meta charset="utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
<title>KISSY Combobox Demo</title>
<link href="/kissy/src/css/assets/dpl/base.css" rel="stylesheet"/>
<link href="assets/dpl.css" rel="stylesheet"/>
<link href="../menu/assets/dpl.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
    <h1>KISSY Combobox</h1>
</div>
<script src="/kissy/build/seed.js"></script>
<script>
    KISSY.use('menu', function (S, Menu) {
        new Menu({
            width:200,
            render:'.container',
            listeners:{
                "click":function (e) {
                    var h;
                    if (h = e.target.get("href")) {
                        window.open(h);
                    }
                }
            },
            children:[
                {
                    content:"dpl",
                    href:'demo/dpl/demo.html'
                },
                {
                    content:'other',
                    xclass:'submenu',
                    menu:{
                        children:[
                            {
                                content:'简单静态使用',
                                href:'demo/other/static-basic.html'
                            },
                            {
                                content:'简单动态使用',
                                href:'demo/other/xhr-basic.html'
                            },
                            {
                                content:'简单 combobox',
                                href:'demo/other/combobox.html'
                            },
                            {
                                content:'taobao search',
                                href:'demo/other/search.html'
                            },
                            {
                                content:'gmail 模式',
                                href:'demo/other/gmail.html'
                            },
                            {
                                content:'gmail 光标跟随模式',
                                href:'demo/other/at.html'
                            },
                            {
                                content:'weibo 光标跟随模式',
                                href:'demo/other/at-weibo.html'
                            }
                        ]
                    }
                }
            ]
        }).render();
    });
</script>
</body>
</html>